package com.hop.thread;

/**
 * 线程测试类
 * @author Administrator
 *
 */
public class ThreadTest {
	
	public static void main(String[] args){
		for(int i=0; i<100; i++){
			System.out.println(Thread.currentThread().getName() +" "+i);
			if(i==50){
				Thread t1 = new MyThread();
				Thread t2 = new MyThread();
				t1.start();
				t2.start();
			}
		}
	}
}
